package com.gmail.hy87cn.hellohi.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

public class HiMessageUi extends Composite {

	private static HiMessageUiUiBinder uiBinder = GWT
			.create(HiMessageUiUiBinder.class);

	interface HiMessageUiUiBinder extends UiBinder<Widget, HiMessageUi> {
	}

	@UiField
	Label sender;
	@UiField
	HTML content;

	public HiMessageUi(String sender, String content) {
		initWidget(uiBinder.createAndBindUi(this));
		
		this.sender.setText(sender);
		this.content.setHTML(content);
		
	}
}
